package cm.com.carlamanda.dao;

import java.util.List;

import cm.com.carlamanda.domain.UserGroupInfo;
import cm.com.carlamanda.domain.UserInfo;

/**
 * 鐢ㄦ埛DAO鎺ュ彛
 * @author chaoqi
 *
 */
public interface UserDAO {
	
	// 娣诲姞鐢ㄦ埛
	public void insertUser(UserInfo user);
	// 鍒犻櫎鐢ㄦ埛
	public void delUser(String userNo);
	// 淇敼鐢ㄦ埛
	public void editUser(UserInfo user);
	
	// 鏌ヨ涓汉璇︾粏淇℃伅(鍩烘湰淇℃伅+缁勪俊鎭�
	public UserGroupInfo searchUserDetails(String userNo);
	// 鏌ヨ鎵�湁鐢ㄦ埛鍩烘湰淇℃伅
	public List<UserInfo> searchUsers(UserInfo user);
	// 鐢ㄦ埛鐧诲綍(鏌ヨ涓汉鍩烘湰淇℃伅)
	public UserInfo findUserByNamePassword(UserInfo user);

}
